﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TjZheng.Example.MVC.Controllers
{
    public class ModelBinderController : Controller
    {
        public ActionResult Index([RegularExpression("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$")]string email)
        {
            return Content(ModelState.IsValid.ToString());
        }
    }
}
